package com.home.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.home.dao.TestDAO;
import com.home.model.Test;
import com.home.service.TestService;
@Service
public class TestServiceImpl  implements TestService{
	@Autowired
	private TestDAO<Test,Integer> testDAO;
	
	
	public TestDAO<Test,Integer> getTestDAO() {
		return testDAO;
	}

	public void setTestDAO(TestDAO<Test,Integer> testDAO) {
		this.testDAO = testDAO;
	}

	public void insert(Test t) {
		this.getTestDAO().save(t);
	}

	
}
